package top.korori.sv.entity.vo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.fasterxml.jackson.annotation.JsonInclude;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;

import java.io.Serializable;
import java.util.List;

@Getter
@Setter
@ApiModel(value = "用户城市城市选择树状数据")
public class SvUserAreaTreeVo implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty("地址ID")
    @TableId(value = "area_id", type = IdType.AUTO)
    private Integer areaId;

    @ApiModelProperty("地区名字")
    private String name;

    @ApiModelProperty("上级路径ID")
    private Integer parentId;

    @JsonInclude(JsonInclude.Include.NON_NULL)
    @ApiModelProperty("子节点")
    private List<SvUserAreaTreeVo> children;

}
